package cn.zn.modules.pz.his.entity;

import lombok.Data;
import org.mongodb.morphia.annotations.Entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Entity
@Document(collection = "pz_main")
public class PzMain {
    @Id
    private String id;
    @Field("ap")
    private Integer ap;
    @Field("main_id")
    private String mainId;
    @Field("create_time")
    private Date createTime;
    @Field("create_user_id")
    private String createUserId;
    @Field("is_active")
    private Boolean isActive;
    @Field("remark")
    private String remark;
    @Field("sort_num")
    private Integer sortNum;
    @Field("update_time")
    private Date updateTime;
    @Field("update_user_id")
    private String updateUserId;
    @Field("version")
    private Integer version;
    @Field("agent_users")
    private String agentUsers;
    @Field("apply_code")
    private String applyCode;
    @Field("apply_date")
    private Date applyDate;
    @Field("apply_dept_code")
    private String applyDeptCode;
    @Field("apply_type")
    private String applyType;
    @Field("apply_user_code")
    private String applyUserCode;
    @Field("associated_code")
    private String associatedCode;
    @Field("is_associated")
    private Boolean isAssociated;
    @Field("level")
    private Integer level;
    @Field("pi_id")
    private String piId;
    @Field("state")
    private Integer state;
    @Field("title")
    private String title;
    /**
     * 是否生成票据（未使用）
     */
    @Field("ticket_generated")
    private String ticketGenerated;
    /**
     * 档案编号
     */
    @Field("archive_code")
    private String archiveCode;
    /**
     * 档案备注
     */
    @Field("archive_remark")
    private String archiveRemark;
    /**
     * 是否归档
     */
    @Field("is_archive")
    private Boolean isArchive;
    /**
     * 作废备注
     */
    @Field("invalid_remark")
    private String invalidRemark;
    /**
     * 委托人编号
     */
    @Field("auth_user_code")
    private String authUserCode;
    @Field("auth_user_name")
    private String authUserName;
    @Field("apply_user_name")
    private String applyUserName;
    @Field("apply_dept_name")
    private String applyDeptName;
    @Field("money")
    private Double money;
    @Field("spending_type")
    private Integer spendingType;
    @Field("print_num")
    private Integer printNum;

}
